package com.linko.intelligent.remote.pojo.po;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BaseIotDevice {

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", position = 0)
    @TableId
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 1)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    @ApiModelProperty(value = "基础设备编码", position = 2)
    private String baseSn;

    @ApiModelProperty(value = "iot设备sn", position = 3)
    private String iotSn;

    @ApiModelProperty(value = "离线时长s", position = 4)
    private Long offline;

    @ApiModelProperty(value = "在线状态", position = 5)
    private String onlineStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private String latestTime;
}
